* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  
  body {
    background-image: url('./image/bg.jpg');
    background-size: cover;
    font-family: sans-serif;
  }
  
  .mouses-box {
    width: 680px;
    height: 520px;
    border: 2px solid #666;
    margin: 50px auto;
    background-color: #72CCAB;
    display: flex;
    flex-direction: column;
    cursor: url('./image/cursor.png'), auto;
    position: relative;
    overflow: hidden;
  }
  
  .mouses-box-down {
    cursor: url('./image/cursor-down.png'), auto;
  }
  
  .toolbar {
    display: flex;
    height: 68px;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    color: #fff;
    font-size: 18px;
    border-bottom: 1px solid #666;
    cursor: pointer;
  }
  
  .levels {
    margin-left: 30px;
  }
  
  #level {
    padding: 5px 10px;
    border-radius: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    outline: none;
    cursor: pointer;
  }
  
  #mouseFrame {
    display: flex;
    flex-wrap: wrap;
  }
  
  .mouse {
    width: 20%;
    height: 128px;
    border-right: 1px solid #666;
    border-bottom: 1px solid #666;
    background: url('./image/hole.png') no-repeat center 80px;
    background-size: 50%;
    transition: transform 0.2s ease-in-out;
  }
  
  .mouse:nth-child(5n) {
    border-right: none;
  }
  
  .start {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid #666;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
  }
  
  .start:last-child {
    border-bottom: none;
  }
  
  .start:active {
    transform: scale(0.98);
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .start::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
  }
  
  .start:active::after {
    animation: ripple 0.6s ease-out;
  }
  
  @keyframes ripple {
    0% {
      transform: scale(0, 0);
      opacity: 0.5;
    }
    100% {
      transform: scale(20, 20);
      opacity: 0;
    }
  }
  
  .out {
    background: url('./image/mouse.png') no-repeat center 40px;
    background-size: 50%;
    animation: pop 0.2s ease-in-out;
  }
  
  @keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
  }
  
  #highScore {
    margin-top: 10px;
    font-size: 14px;
    color: #fff;
    text-align: center;
    padding: 5px 0;
  }
  
  /* 烟花爆炸效果 */
  .firework {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    opacity: 0;
    z-index: 99;
    animation: firework-explode 1.5s ease-out forwards;
  }
  
  @keyframes firework-explode {
    0% {
      transform: translate(-50%, -50%) scale(0);
      opacity: 1;
      box-shadow: 
        0 0 0 0 rgba(255, 0, 0, 0.8),
        0 0 0 0 rgba(0, 255, 0, 0.8),
        0 0 0 0 rgba(0, 0, 255, 0.8);
    }
    50% {
      opacity: 1;
    }
    100% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0;
      box-shadow: 
        var(--dx1) var(--dy1) 0 var(--spread1) rgba(var(--color1), 0),
        var(--dx2) var(--dy2) 0 var(--spread2) rgba(var(--color2), 0),
        var(--dx3) var(--dy3) 0 var(--spread3) rgba(var(--color3), 0);
    }
  }
  
  /* 彩花粒子效果 */
  .confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #f00;
    border-radius: 50%;
    opacity: 0;
    z-index: 100;
    animation: confetti-fall 2.5s ease-out forwards;
  }
  
  .confetti.square {
    border-radius: 2px;
  }
  
  .confetti.star {
    background: transparent;
    width: 10px;
    height: 10px;
  }
  
  .confetti.star::before {
    content: '★';
    color: currentColor;
    font-size: 10px;
  }
  
  @keyframes confetti-fall {
    0% {
      transform: 
        translate(-50%, -50%) 
        translate(0, 0) 
        rotate(0deg) 
        scale(1);
      opacity: 1;
    }
    50% {
      opacity: 0.8;
    }
    100% {
      transform: 
        translate(-50%, -50%) 
        translate(var(--tx), var(--ty)) 
        rotate(var(--rot))
        scale(0.2);
      opacity: 0;
    }
  }